package com.shanyue.redwine.http;


import com.shanyue.redwine.utils.Constants;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import retrofit2.http.Url;

/**
 * Created by Huang on 2016/7/26.
 */
public interface ApiService {
    @Headers({"Content-Type: text/plain;charset=UTF-8", "Accept:application/json"})
    @POST(Constants.URL_OPEN_DOOR)
    Call<ApiResponse> openDoor(@Body String body);

//    @Headers({"Content-Type: text/plain;charset=UTF-8", "Accept:application/json"})
//    @POST(Constants.URL_WINE_CABINET_GOODS_LIST)
//    Call<ApiResponse<String>> getWineCabinetGoodsList(@Body String body);
//
//    @Headers({"Content-Type: text/plain;charset=UTF-8", "Accept:application/json"})
//    @POST(Constants.URL_WINE_CABINET_ORDER_LIST)
//    Call<ApiResponse<String>> getWineCabinetOrderList(@Body String body);
//
//    @Headers({"Content-Type: text/plain;charset=UTF-8", "Accept:application/json"})
//    @POST(Constants.URL_WINE_CABINET_ORDER_LIST)
//    Call<ApiResponse<String>> getWineCabinetRecord(@Body String body);

    @Headers({"Content-Type: text/plain;charset=UTF-8", "Accept:application/json"})
    @POST()
    Call<ApiResponse<String>> getResultString(@Url String url, @Body String body);
}
